package cn.com.longfuinfo.wx.kit;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DirKit {
	public static final int GOODS_LOGO = 1;
	public static final int GOODS_IMAGES = 2;
	public static final int GOODS_DETAIL = 3;
	public static final int STORE_LOGO = 4;
	public static final int AD = 5;
	public static final int NOTICE = 6;
	public static final int ICON = 7;
	public static final int AVATOR = 8;
	public static final int RECHARGE = 9;
	public static final int ORDER_QRCODE = 10;
	public static final int VIP_QRCODE = 11;
	public static final int VIP_POST = 12;
	
	public static String getDir(int type){
		String ymd = new SimpleDateFormat("yyyy/MM/dd/").format(new Date());
		switch (type) {
		case GOODS_LOGO:
			return "/dashihui/goods/"+ymd;
		case GOODS_IMAGES:
			return "/dashihui/goods/"+ymd;
		case GOODS_DETAIL:
			return "/dashihui/goods/"+ymd;
		case STORE_LOGO:
			return "/dashihui/store/"+ymd;
		case AD:
			return "/dashihui/ad/";
		case NOTICE:
			return "/dashihui/notice/"+ymd;
		case ICON:
			return "/dashihui/icon/"+ymd;
		case AVATOR:
			return "/dashihui/avator/"+ymd;
		case RECHARGE:
			return "/dashihui/recharge/"+ymd;
		case ORDER_QRCODE:
			return "/dashihui/order/qrcode/"+ymd;
		case VIP_QRCODE:
			return "/dashihui/my/VIPqrcode/"+ymd;
		case VIP_POST:
			return "/dashihui/my/post/"+ymd;
		}
		return ymd;
	}
}
